package com.dexstudio.events;

import com.dexstudio.constants.IntentConstants;
import com.dexstudio.currency.CurrencyActivity;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;

public class FunctionItemClick implements OnItemClickListener {
	
	public FunctionItemClick(Activity context) {
		this.context = context;
	}
	
	public void onItemClick(AdapterView<?> functionsAdapter, 
			View functionsList, int position, long arg3) {
		Intent intentStarter = null;
		
		switch(position) {
		case 0:
			intentStarter = new Intent(context, CurrencyActivity.class);
            context.startActivityForResult(intentStarter, 
            		IntentConstants.ACTIVITY_CURRENCY);
            
			break;
		}
	}
	
	//Objects & Variables
	private Activity context = null;
}
